<template>
  <UniversalEcharts :options="options"/>
</template>

<script>
import UniversalEcharts from "@/views/reports/components/universal-echarts.vue";

export default {
  name: "pie-echarts",
  components: {
    UniversalEcharts
  },
  data() {
    return {
      options: {
        tooltip: {
          trigger: 'item',
        },
        legend: {
          orient: 'vertical',
          right: '5%',
          top: 'center',
          textStyle: {
            color: '#fff',
            fontSize: 12
          }
        },
        gird: {
          top: 50
        },
        series: [
          {
            name: 'Access From',
            type: 'pie',
            radius: ['40%', '70%'],
            center: ['40%', '50%'],
            label: {
              show: false,
              position: 'center'
            },
            emphasis: {
              label: {
                show: true,
                fontSize: 40,
                fontWeight: 'bold'
              }
            },
            labelLine: {
              show: false
            },
            data: [
              {value: 1048, name: 'Search Engine'},
              {value: 735, name: 'Direct'},
              {value: 580, name: 'Email'},
              {value: 484, name: 'Union Ads'},
            ]
          }
        ]
      }
    }
  }
}
</script>

<style scoped>

</style>
